home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT CREATE.SCRIPT < prev    next >
Encoding:
Text File  |  1998-01-06  |  583 b   |  27 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: File 
  8. @Method: create - attempts to create the file or directory. 
  9. Returns true if the file or directory exists after calling 
  10. this method. 
  11. @Syntax: file.create()
  12. @Summary: create - attempts to create the file or directory. 
  13. */
  14.  
  15. function DoCommand()
  16. {
  17.   var editor = getActiveEditor();
  18.   if (editor)
  19.   {
  20.     var selection = editor.getSelection();
  21.     editor.replace("file.create()", selection);
  22.     editor.setActive("Insert file.create");
  23.   }
  24. }
  25.  
  26. !!/Script
  27.